:host {
  width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.input-section {
  margin-bottom: 24px;
}

.prompt-input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 12px;
}

.prompt-input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.button-group {
  display: flex;
  gap: 8px;
}

.generate-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.generate-btn:hover:not(:disabled) {
  background: #0052a3;
}

.generate-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.stop-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.stop-btn:hover {
  background: #dc2626;
}

.result-section {
  background: #f8fafc;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.result-section h4 {
  margin: 0 0 12px 0;
  color: #374151;
  font-size: 16px;
}

.result-text {
  margin: 0;
  background: white;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #e1e5e9;
  white-space: pre-wrap;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #1f2937;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}
